 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  <jsp:include page="../Common/header.jsp"></jsp:include>
 <!-- Content Wrapper. Contains page content -->
   <div class="content-wrapper">
       <section class="content-header">
		    <h1>CRM 客户自定义字段管理</h1>
		    <ol class="breadcrumb">
			<li><a href="#"><i class="fa fa-home"></i> Home</a></li>
			<li class="active">CRM</li>
			<li class="active">设置</li>
			<li class="active">客户自定义字段管理</li>
		    </ol>
	   </section>

	<section class="content">		
	<div class="operate panel panel-default">
		<div class="panel-body">
			<div class="pull-left">
				<a class="btn btn-sm btn-primary" onclick="go_return_url()">返回</a>
			</div>
			<div class="pull-right" id="uploader">
				<!-- <a id="pickfiles" class="btn btn-sm btn-primary">导入</a>
				<a onclick="export_udf()" class="btn btn-sm btn-primary">导出</a> -->
				<a onclick="add()" class="btn btn-sm btn-primary">新增</a>
				<a onclick="save()" class="btn btn-sm btn-primary">保存</a>
				&nbsp;|&nbsp;
				<a onclick="del()" class="btn btn-sm btn-danger">删除</a>
			</div>
		</div>
	</div>
	<div class="row">
		<div class="col-sm-4 sub_left_menu ">
			<div class="well">
							</div>
		</div>
		<div class="col-sm-8 ">
			<form method="post" id="form_data" class="well form-horizontal">
				<input type="hidden" name="controller" id="controller" value="CrmContact">
				<input type="hidden" name="row_type" id="row_type" value="1">
				<input type="hidden" name="id" id="id">
				<input type="hidden" id="opmode" name="opmode" value="edit">
				<input type="hidden" name="ajax" id="ajax" value="1">

				<div class="form-group">
					<label class="col-sm-4 control-label" for="name">名称*：</label>
					<div class="col-sm-8">
						<input class="form-control" type="text" id="name" name="name" check="require" msg="请输入名称">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-4 control-label" for="type">控件类型*：</label>
					<div class="col-sm-8">
						<select name="type" id="type" check="require" msg="请选择控件类型" class="form-control col-12">
							<option value="">请选择</option>
							<option value="popup">弹窗选择</option>
							<option value="add_file">文件上传</option>
							<option value="text">单行文本</option>
							<option value="date">日期 </option>
							<option value="datetime">日期+时间 </option>
							<option value="select">列表</option>
							<option value="link_select">联动列表</option>
							<option value="radio">单选</option>
							<option value="checkbox">多选 </option>
							<option value="textarea">多行文本 </option>
							<option value="editor">编辑器</option>
							<option value="simple">简易编辑器</option>
							<option value="help">帮助 </option>
							<option value="hr">分隔符</option>
						</select>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-4 control-label" for="layout">控件布局：</label>
					<div class="col-sm-8">
						<select name="layout" id="layout" check="require" msg="请选择控件布局" class="form-control col-12">
							<option value="">请选择 </option><option value="1">两列 </option><option value="2">整行 </option><option value="3">帮助 </option><option value="4">分隔符
						</option></select>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-4 control-label" for="data">控件数据：</label>
					<div class="col-sm-8">
						<input class="form-control" type="text" id="data" name="data">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-4 control-label" for="config">设置：</label>
					<div class="col-sm-8">
						<input class="form-control" type="text" id="config" name="config">
					</div>
				</div>
				<div class="form-group =">
					<label class="col-sm-4 control-label" for="sort">排序：</label>
					<div class="col-sm-8">
						<input class="form-control" type="text" id="sort" name="sort">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-4 control-label" for="validate">验证：</label>
					<div class="col-sm-8">
						<select name="validate" id="validate" class="form-control col-12">
							<option value="">请选择 </option><option value="require">必选 </option><option value="email">邮件 </option><option value="number">数字
						</option></select>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-4 control-label" for="msg">错误提示：</label>
					<div class="col-sm-8">
						<input class="form-control" type="text" id="msg" name="msg">
					</div>
				</div>
			</form>
		</div>
	</div>
	<form method="post" class="well form-horizontal clearfix">
			</form>
    </section>

   </div><!-- /.content-wrapper -->
  <jsp:include page="../Common/footer.jsp"></jsp:include>
  <script type="text/javascript">
  $("#adv_search").hide();
  function toggle_adv_search()
  {
  $("#adv_search").show();
  }
  function close_adv_search()
  {
  $("#adv_search").hide();
  }
</script>
  